package org.jeecg.modules.demo.live.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: jk_live
 * @Author: jeecg-boot
 * @Date:   2025-05-18
 * @Version: V1.0
 */
@Data
@TableName("jk_live")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="jk_live")
public class JkLive implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private Integer id;
	/**主题*/
	@Excel(name = "主题", width = 15)
    @Schema(description = "主题")
    private String title;
	/**说明*/
	@Excel(name = "说明", width = 15)
    @Schema(description = "说明")
    private String subtitle;
	/**开始时间*/
	@Excel(name = "开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始时间")
    private Date beginTime;
/*	*//**主播人*//*
	@Excel(name = "主播人", width = 15)
    @Schema(description = "主播人")
    private Integer mainId;*/

    @Excel(name = "主播人", width = 15, dictTable = "jk_member_info", dicText = "username", dicCode = "id")
    @Dict(dictTable = "jk_member_info", dicText = "username", dicCode = "id")
    @Schema(description = "主播人")
    private java.lang.Integer mainId;

	/**直播地址*/
	@Excel(name = "直播地址", width = 15)
    @Schema(description = "直播地址")
    private String liveUrl;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "live_state")
	@Dict(dicCode = "live_state")
    @Schema(description = "状态")
    private String state;
	/**是否启用*/
    @Excel(name = "是否启用", width = 15,replace = {"是_Y","否_N"} )
    @Schema(description = "是否启用")
    private String isEnabled;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "createTime")
    private Date createTime;
	/**createBy*/
    @Schema(description = "createBy")
    private String createBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "updateTime")
    private Date updateTime;
	/**updateBy*/
    @Schema(description = "updateBy")
    private String updateBy;
}
